from flask import jsonify


class LayData:
    """
    layui数据表格封装
    """

    @staticmethod
    def data(code, message, count, data):
        return {"code": code, "msg": message, "count": count, "data": data}

    @staticmethod
    def data2(code, msg):
        return {'code': code, 'msg': msg}